package com.ckr.controller;

import com.ckr.utils.JsonUtils;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * @author Shadowckr
 * @create 2022-01-02 18:27
 */
@RestController
public class UserController2 {
    @RequestMapping("/j1")
    public String json() throws JsonProcessingException {
        Date date = new Date();
        return JsonUtils.getJson(date);
    }
    //"2022-01-02 18:32:12"
}
